﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="IPData.ascx.vb" Inherits="WebForm_OtherData_IPData" %>
<asp:Panel ID="panel1" runat="server" BackColor="#E7FEC2" BorderWidth="1" Width="800px"
     ScrollBars="Auto">
    <asp:HiddenField ID="hiDBName" runat="server" />
    <asp:HiddenField ID="hiIP" runat="server" />
    <asp:ObjectDataSource ID="dbIPData" runat="server" SelectMethod="GetIPLocationData" 
        TypeName="AssetManage.BBL.IPLocationDataBBL">
               <SelectParameters>
                       <asp:ControlParameter ControlID="hiIP" 
                        Name="IP_Beg" PropertyName="Value" Type="String"/>
                       <asp:ControlParameter ControlID="txtLocation" ConvertEmptyStringToNull="False" 
                        Name="Location" PropertyName="Text" Type="String"  DefaultValue =""/>
                       <asp:ControlParameter ControlID="txtFactory" ConvertEmptyStringToNull="False" 
                       Name="Site" PropertyName="Text" Type="String" DefaultValue ="" />
                       <asp:ControlParameter ControlID="hiDBName" Name="dbName" PropertyName="Value" 
                       Type="String" />
                </SelectParameters>
    </asp:ObjectDataSource>
    <table border="1">
        <tr>
            <td align="center">
                <asp:Label ID="lblpopTitle" runat="server" meta:resourcekey="lblpopTitle" Font-Bold="True" Font-Size="20px"></asp:Label>
                <asp:TextBox ID="txtLocation" runat="server" Visible="false"></asp:TextBox>
                <asp:TextBox ID="txtFactory" runat="server" Visible="false"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel"></asp:Button>
            </td>
        </tr>
        <tr>
            <td>
                <TServerControl:TGridView ID="gvIPData" runat="server" AllowHoverEffect="False" 
                    AllowHoverSelect="False" AutoGenerateColumns="False" DataSourceID="dbIPData" 
                    ShowFooterWhenEmpty="False" ShowHeaderWhenEmpty="True" SkinID="pager" 
                    AllowPaging ="True" Width="700px">
                    <EmptyDataTemplate>
                        <asp:Label ID="lblEmpty" runat="server" ForeColor="Red"  meta:resourcekey="lblEmpty"
                            ></asp:Label>
                    </EmptyDataTemplate>
                    <Columns>
                        
                        <asp:BoundField DataField="Site"  meta:resourcekey="gvSite" />
                        <asp:BoundField DataField="Location" meta:resourcekey="gvLocation" />
                        <asp:BoundField DataField="IP_Beg" meta:resourcekey="gvBeginIP" />
                        <asp:BoundField DataField="IP_End" meta:resourcekey="gvEndIP" />
                        
                       
                    </Columns>
                </TServerControl:TGridView>
            </td>
        </tr>
        <tr>
            <td align="center">
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" SkinID="null" Style="display: none" />
<asp:Button ID="btnOK1" runat="server" SkinID="null" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" CancelControlID="btnCancel"
    X="30" Y="70" OkControlID="btnOK1" PopupControlID="panel1" PopupDragHandleControlID="panel1"
    TargetControlID="btnDummy" />
